charAt String method demo programming